<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DOM Practice</title>
</head>
<body>
    <h1>DOM Manipulation Practice</h1>
    <p id="text">This is a sample paragraph. Click the button to change this text.</p>
    <button id="changeTextButton">Change Text</button>

    <script>
        document.getElementById('changeTextButton').addEventListener('click', function() {
            document.getElementById('text').textContent = 'The text has been changed!';
        });
    </script>
</body>
</html>